﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace RMSoftware.Models
{
    [MetadataType(typeof(PersonMetadata))]
    public partial class Person
    {

    }

    public class PersonMetadata
    {
        [Required]
        [DisplayName("Фамилия")]
        public string LastName { get; set; }

        [Required]
        [DisplayName("Имя")]
        public string FirstName { get; set; }

        [Required]
        [DisplayName("Должность")]
        public string Position { get; set; }

        [Required]
        [DisplayName("Логин")]
        public string Login { get; set; }

        [Required]
        [DisplayName("Пароль")]
        public string Password { get; set; }
    }
}